package com.woniuxy.threeprojcet.end_water_project_admin.dao;

import com.woniuxy.threeprojcet.end_water_project_admin.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Lucas
 * @since 2021-08-26
 */
public interface UserMapper extends BaseMapper<User> {

    @Update("update wn_user set state = 1 where water_meter_id=#{waterMeterId}")
    int updateUserStateByWaterMeterId(int waterMeterId);
}
